import { RequestMenu } from '../api/IndexApi';

export const menuList = () => {

    return (dispatch, getState) => {
        // dispatch({ type: 'listStart' });

        return RequestMenu().then(data => {
            console.log(data);
            const list = data.sysmenu;
            dispatch({ type: 'menuEnd',list })
        })
    }
}